package day05;

import java.io.IOException;

public class Main {

	public static void main(String[] args) throws IOException {
		Denglulei denglulei=new Denglulei();
		Caidanlei caidanlei=new Caidanlei();
		Kaoshilei kaoshilei=new Kaoshilei();
		ClientContext clientcontext=new ClientContext();
		Controller controller =new Controller();
		Shujuku shujuku=new Shujuku();
		Paper paper=new Paper();
		
		//依赖关系注入
		clientcontext.setCaidanlei(caidanlei);
		clientcontext.setDenglulei(denglulei);
		clientcontext.setController(controller);
		clientcontext.setKaoshilei(kaoshilei);
		clientcontext.setPaper(paper);
		
		paper.setShujuku(shujuku);
		paper.setClientcontext(clientcontext);
		controller.setshujuku(shujuku);
		controller.setClientcontext(clientcontext);
		denglulei.setClientcontext(clientcontext);
		caidanlei.setClientcontext(clientcontext);
		kaoshilei.setClientcontext(clientcontext);
//		clientcontext.questionfamiy();

		clientcontext.show();

		

	}

}
